from flask_restful import Api

from apps.apis.cinema.address_api import CinemaAddressesResource
from apps.apis.cinema.address_api import CinemaAddressResource
from apps.apis.cinema.cinema_user_api import CinemaUsersResource
from apps.apis.cinema.hall_api import CinemaHallsResource
from apps.apis.cinema.movie_api import CinemaMoviesResource
from apps.apis.cinema.movie_hall_api import CinemaMovieHallsResource

cinema_api = Api(prefix='/cinema')

cinema_api.add_resource(CinemaUsersResource, '/users')
cinema_api.add_resource(CinemaAddressesResource, '/addresses')
cinema_api.add_resource(CinemaAddressResource, '/addresses/<int:id>')
cinema_api.add_resource(CinemaMoviesResource, '/movies')
cinema_api.add_resource(CinemaHallsResource, '/halls')
cinema_api.add_resource(CinemaMovieHallsResource, '/moviehalls')
